import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/education/couser_center/get_detail_by_id_entity.dart';

GetDetailByIdEntity $GetDetailByIdEntityFromJson(Map<String, dynamic> json) {
  final GetDetailByIdEntity getDetailByIdEntity = GetDetailByIdEntity();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getDetailByIdEntity.id = id;
  }
  final String? launchDepartmentId = jsonConvert.convert<String>(json['launchDepartmentId']);
  if (launchDepartmentId != null) {
    getDetailByIdEntity.launchDepartmentId = launchDepartmentId;
  }
  final String? launchDepartmentName = jsonConvert.convert<String>(json['launchDepartmentName']);
  if (launchDepartmentName != null) {
    getDetailByIdEntity.launchDepartmentName = launchDepartmentName;
  }
  final List<GetDetailByIdQuestions>? questions = (json['questions'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDetailByIdQuestions>(e) as GetDetailByIdQuestions).toList();
  if (questions != null) {
    getDetailByIdEntity.questions = questions;
  }
  final String? surveyDateEnd = jsonConvert.convert<String>(json['surveyDateEnd']);
  if (surveyDateEnd != null) {
    getDetailByIdEntity.surveyDateEnd = surveyDateEnd;
  }
  final String? surveyName = jsonConvert.convert<String>(json['surveyName']);
  if (surveyName != null) {
    getDetailByIdEntity.surveyName = surveyName;
  }
  final List<GetDetailByIdSurveyPositions>? surveyPositions = (json['surveyPositions'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDetailByIdSurveyPositions>(e) as GetDetailByIdSurveyPositions).toList();
  if (surveyPositions != null) {
    getDetailByIdEntity.surveyPositions = surveyPositions;
  }
  final List<GetDetailByIdSurveyTypes>? surveyTypes = (json['surveyTypes'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDetailByIdSurveyTypes>(e) as GetDetailByIdSurveyTypes).toList();
  if (surveyTypes != null) {
    getDetailByIdEntity.surveyTypes = surveyTypes;
  }
  final List<GetDetailByIdSurveyUsers>? surveyUsers = (json['surveyUsers'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDetailByIdSurveyUsers>(e) as GetDetailByIdSurveyUsers).toList();
  if (surveyUsers != null) {
    getDetailByIdEntity.surveyUsers = surveyUsers;
  }
  return getDetailByIdEntity;
}

Map<String, dynamic> $GetDetailByIdEntityToJson(GetDetailByIdEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['launchDepartmentId'] = entity.launchDepartmentId;
  data['launchDepartmentName'] = entity.launchDepartmentName;
  data['questions'] = entity.questions?.map((v) => v.toJson()).toList();
  data['surveyDateEnd'] = entity.surveyDateEnd;
  data['surveyName'] = entity.surveyName;
  data['surveyPositions'] = entity.surveyPositions?.map((v) => v.toJson()).toList();
  data['surveyTypes'] = entity.surveyTypes?.map((v) => v.toJson()).toList();
  data['surveyUsers'] = entity.surveyUsers?.map((v) => v.toJson()).toList();
  return data;
}

extension GetDetailByIdEntityExtension on GetDetailByIdEntity {
  GetDetailByIdEntity copyWith({
    String? id,
    String? launchDepartmentId,
    String? launchDepartmentName,
    List<GetDetailByIdQuestions>? questions,
    String? surveyDateEnd,
    String? surveyName,
    List<GetDetailByIdSurveyPositions>? surveyPositions,
    List<GetDetailByIdSurveyTypes>? surveyTypes,
    List<GetDetailByIdSurveyUsers>? surveyUsers,
  }) {
    return GetDetailByIdEntity()
      ..id = id ?? this.id
      ..launchDepartmentId = launchDepartmentId ?? this.launchDepartmentId
      ..launchDepartmentName = launchDepartmentName ?? this.launchDepartmentName
      ..questions = questions ?? this.questions
      ..surveyDateEnd = surveyDateEnd ?? this.surveyDateEnd
      ..surveyName = surveyName ?? this.surveyName
      ..surveyPositions = surveyPositions ?? this.surveyPositions
      ..surveyTypes = surveyTypes ?? this.surveyTypes
      ..surveyUsers = surveyUsers ?? this.surveyUsers;
  }
}

GetDetailByIdQuestions $GetDetailByIdQuestionsFromJson(Map<String, dynamic> json) {
  final GetDetailByIdQuestions getDetailByIdQuestions = GetDetailByIdQuestions();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getDetailByIdQuestions.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getDetailByIdQuestions.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getDetailByIdQuestions.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getDetailByIdQuestions.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getDetailByIdQuestions.deleted = deleted;
  }
  final int? duration = jsonConvert.convert<int>(json['duration']);
  if (duration != null) {
    getDetailByIdQuestions.duration = duration;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getDetailByIdQuestions.id = id;
  }
  final String? myValidity = jsonConvert.convert<String>(json['myValidity']);
  if (myValidity != null) {
    getDetailByIdQuestions.myValidity = myValidity;
  }
  final String? optionA = jsonConvert.convert<String>(json['optionA']);
  if (optionA != null) {
    getDetailByIdQuestions.optionA = optionA;
  }
  final String? optionB = jsonConvert.convert<String>(json['optionB']);
  if (optionB != null) {
    getDetailByIdQuestions.optionB = optionB;
  }
  final String? optionC = jsonConvert.convert<String>(json['optionC']);
  if (optionC != null) {
    getDetailByIdQuestions.optionC = optionC;
  }
  final String? optionD = jsonConvert.convert<String>(json['optionD']);
  if (optionD != null) {
    getDetailByIdQuestions.optionD = optionD;
  }
  final String? parsing = jsonConvert.convert<String>(json['parsing']);
  if (parsing != null) {
    getDetailByIdQuestions.parsing = parsing;
  }
  final String? questionMain = jsonConvert.convert<String>(json['questionMain']);
  if (questionMain != null) {
    getDetailByIdQuestions.questionMain = questionMain;
  }
  final String? questionTypeDicId = jsonConvert.convert<String>(json['questionTypeDicId']);
  if (questionTypeDicId != null) {
    getDetailByIdQuestions.questionTypeDicId = questionTypeDicId;
  }
  final String? questionValidity = jsonConvert.convert<String>(json['questionValidity']);
  if (questionValidity != null) {
    getDetailByIdQuestions.questionValidity = questionValidity;
  }
  final int? score = jsonConvert.convert<int>(json['score']);
  if (score != null) {
    getDetailByIdQuestions.score = score;
  }
  final String? textbookId = jsonConvert.convert<String>(json['textbookId']);
  if (textbookId != null) {
    getDetailByIdQuestions.textbookId = textbookId;
  }
  final String? timeCount = jsonConvert.convert<String>(json['timeCount']);
  if (timeCount != null) {
    getDetailByIdQuestions.timeCount = timeCount;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getDetailByIdQuestions.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getDetailByIdQuestions.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getDetailByIdQuestions.updateDate = updateDate;
  }
  return getDetailByIdQuestions;
}

Map<String, dynamic> $GetDetailByIdQuestionsToJson(GetDetailByIdQuestions entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['duration'] = entity.duration;
  data['id'] = entity.id;
  data['myValidity'] = entity.myValidity;
  data['optionA'] = entity.optionA;
  data['optionB'] = entity.optionB;
  data['optionC'] = entity.optionC;
  data['optionD'] = entity.optionD;
  data['parsing'] = entity.parsing;
  data['questionMain'] = entity.questionMain;
  data['questionTypeDicId'] = entity.questionTypeDicId;
  data['questionValidity'] = entity.questionValidity;
  data['score'] = entity.score;
  data['textbookId'] = entity.textbookId;
  data['timeCount'] = entity.timeCount;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension GetDetailByIdQuestionsExtension on GetDetailByIdQuestions {
  GetDetailByIdQuestions copyWith({
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    int? duration,
    String? id,
    String? myValidity,
    String? optionA,
    String? optionB,
    String? optionC,
    String? optionD,
    String? parsing,
    String? questionMain,
    String? questionTypeDicId,
    String? questionValidity,
    int? score,
    String? textbookId,
    String? timeCount,
    String? updateBy,
    String? updateById,
    String? updateDate,
  }) {
    return GetDetailByIdQuestions()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..duration = duration ?? this.duration
      ..id = id ?? this.id
      ..myValidity = myValidity ?? this.myValidity
      ..optionA = optionA ?? this.optionA
      ..optionB = optionB ?? this.optionB
      ..optionC = optionC ?? this.optionC
      ..optionD = optionD ?? this.optionD
      ..parsing = parsing ?? this.parsing
      ..questionMain = questionMain ?? this.questionMain
      ..questionTypeDicId = questionTypeDicId ?? this.questionTypeDicId
      ..questionValidity = questionValidity ?? this.questionValidity
      ..score = score ?? this.score
      ..textbookId = textbookId ?? this.textbookId
      ..timeCount = timeCount ?? this.timeCount
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate;
  }
}

GetDetailByIdSurveyPositions $GetDetailByIdSurveyPositionsFromJson(Map<String, dynamic> json) {
  final GetDetailByIdSurveyPositions getDetailByIdSurveyPositions = GetDetailByIdSurveyPositions();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getDetailByIdSurveyPositions.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getDetailByIdSurveyPositions.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getDetailByIdSurveyPositions.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getDetailByIdSurveyPositions.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getDetailByIdSurveyPositions.deleted = deleted;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getDetailByIdSurveyPositions.id = id;
  }
  final String? surveyId = jsonConvert.convert<String>(json['surveyId']);
  if (surveyId != null) {
    getDetailByIdSurveyPositions.surveyId = surveyId;
  }
  final String? surveyPositionId = jsonConvert.convert<String>(json['surveyPositionId']);
  if (surveyPositionId != null) {
    getDetailByIdSurveyPositions.surveyPositionId = surveyPositionId;
  }
  final int? surveyPositionSort = jsonConvert.convert<int>(json['surveyPositionSort']);
  if (surveyPositionSort != null) {
    getDetailByIdSurveyPositions.surveyPositionSort = surveyPositionSort;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getDetailByIdSurveyPositions.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getDetailByIdSurveyPositions.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getDetailByIdSurveyPositions.updateDate = updateDate;
  }
  final int? wrongCount = jsonConvert.convert<int>(json['wrongCount']);
  if (wrongCount != null) {
    getDetailByIdSurveyPositions.wrongCount = wrongCount;
  }
  return getDetailByIdSurveyPositions;
}

Map<String, dynamic> $GetDetailByIdSurveyPositionsToJson(GetDetailByIdSurveyPositions entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['surveyId'] = entity.surveyId;
  data['surveyPositionId'] = entity.surveyPositionId;
  data['surveyPositionSort'] = entity.surveyPositionSort;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['wrongCount'] = entity.wrongCount;
  return data;
}

extension GetDetailByIdSurveyPositionsExtension on GetDetailByIdSurveyPositions {
  GetDetailByIdSurveyPositions copyWith({
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? id,
    String? surveyId,
    String? surveyPositionId,
    int? surveyPositionSort,
    String? updateBy,
    String? updateById,
    String? updateDate,
    int? wrongCount,
  }) {
    return GetDetailByIdSurveyPositions()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..surveyId = surveyId ?? this.surveyId
      ..surveyPositionId = surveyPositionId ?? this.surveyPositionId
      ..surveyPositionSort = surveyPositionSort ?? this.surveyPositionSort
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..wrongCount = wrongCount ?? this.wrongCount;
  }
}

GetDetailByIdSurveyTypes $GetDetailByIdSurveyTypesFromJson(Map<String, dynamic> json) {
  final GetDetailByIdSurveyTypes getDetailByIdSurveyTypes = GetDetailByIdSurveyTypes();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getDetailByIdSurveyTypes.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getDetailByIdSurveyTypes.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getDetailByIdSurveyTypes.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getDetailByIdSurveyTypes.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getDetailByIdSurveyTypes.deleted = deleted;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getDetailByIdSurveyTypes.id = id;
  }
  final int? selectCount = jsonConvert.convert<int>(json['selectCount']);
  if (selectCount != null) {
    getDetailByIdSurveyTypes.selectCount = selectCount;
  }
  final String? surveyId = jsonConvert.convert<String>(json['surveyId']);
  if (surveyId != null) {
    getDetailByIdSurveyTypes.surveyId = surveyId;
  }
  final String? surveyTypeDicId = jsonConvert.convert<String>(json['surveyTypeDicId']);
  if (surveyTypeDicId != null) {
    getDetailByIdSurveyTypes.surveyTypeDicId = surveyTypeDicId;
  }
  final String? surveyTypeDicName = jsonConvert.convert<String>(json['surveyTypeDicName']);
  if (surveyTypeDicName != null) {
    getDetailByIdSurveyTypes.surveyTypeDicName = surveyTypeDicName;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getDetailByIdSurveyTypes.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getDetailByIdSurveyTypes.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getDetailByIdSurveyTypes.updateDate = updateDate;
  }
  return getDetailByIdSurveyTypes;
}

Map<String, dynamic> $GetDetailByIdSurveyTypesToJson(GetDetailByIdSurveyTypes entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['selectCount'] = entity.selectCount;
  data['surveyId'] = entity.surveyId;
  data['surveyTypeDicId'] = entity.surveyTypeDicId;
  data['surveyTypeDicName'] = entity.surveyTypeDicName;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension GetDetailByIdSurveyTypesExtension on GetDetailByIdSurveyTypes {
  GetDetailByIdSurveyTypes copyWith({
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? id,
    int? selectCount,
    String? surveyId,
    String? surveyTypeDicId,
    String? surveyTypeDicName,
    String? updateBy,
    String? updateById,
    String? updateDate,
    bool? checkboxSelected,
  }) {
    return GetDetailByIdSurveyTypes()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..selectCount = selectCount ?? this.selectCount
      ..surveyId = surveyId ?? this.surveyId
      ..surveyTypeDicId = surveyTypeDicId ?? this.surveyTypeDicId
      ..surveyTypeDicName = surveyTypeDicName ?? this.surveyTypeDicName
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..checkboxSelected = checkboxSelected ?? this.checkboxSelected;
  }
}

GetDetailByIdSurveyUsers $GetDetailByIdSurveyUsersFromJson(Map<String, dynamic> json) {
  final GetDetailByIdSurveyUsers getDetailByIdSurveyUsers = GetDetailByIdSurveyUsers();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getDetailByIdSurveyUsers.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getDetailByIdSurveyUsers.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getDetailByIdSurveyUsers.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getDetailByIdSurveyUsers.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getDetailByIdSurveyUsers.deleted = deleted;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getDetailByIdSurveyUsers.id = id;
  }
  final int? number = jsonConvert.convert<int>(json['number']);
  if (number != null) {
    getDetailByIdSurveyUsers.number = number;
  }
  final int? positionErrorCount = jsonConvert.convert<int>(json['positionErrorCount']);
  if (positionErrorCount != null) {
    getDetailByIdSurveyUsers.positionErrorCount = positionErrorCount;
  }
  final int? positionTotalCount = jsonConvert.convert<int>(json['positionTotalCount']);
  if (positionTotalCount != null) {
    getDetailByIdSurveyUsers.positionTotalCount = positionTotalCount;
  }
  final String? recommendation = jsonConvert.convert<String>(json['recommendation']);
  if (recommendation != null) {
    getDetailByIdSurveyUsers.recommendation = recommendation;
  }
  final GetDetailByIdSurveyUsersSelectPositionList? selectPositionList = jsonConvert.convert<GetDetailByIdSurveyUsersSelectPositionList>(
      json['selectPositionList']);
  if (selectPositionList != null) {
    getDetailByIdSurveyUsers.selectPositionList = selectPositionList;
  }
  final GetDetailByIdSurveyUsersSelectTypeList? selectTypeList = jsonConvert.convert<GetDetailByIdSurveyUsersSelectTypeList>(json['selectTypeList']);
  if (selectTypeList != null) {
    getDetailByIdSurveyUsers.selectTypeList = selectTypeList;
  }
  final String? surveyId = jsonConvert.convert<String>(json['surveyId']);
  if (surveyId != null) {
    getDetailByIdSurveyUsers.surveyId = surveyId;
  }
  final String? surveyUserDepartmentId = jsonConvert.convert<String>(json['surveyUserDepartmentId']);
  if (surveyUserDepartmentId != null) {
    getDetailByIdSurveyUsers.surveyUserDepartmentId = surveyUserDepartmentId;
  }
  final String? surveyUserDepartmentName = jsonConvert.convert<String>(json['surveyUserDepartmentName']);
  if (surveyUserDepartmentName != null) {
    getDetailByIdSurveyUsers.surveyUserDepartmentName = surveyUserDepartmentName;
  }
  final String? surveyUserId = jsonConvert.convert<String>(json['surveyUserId']);
  if (surveyUserId != null) {
    getDetailByIdSurveyUsers.surveyUserId = surveyUserId;
  }
  final String? surveyUserName = jsonConvert.convert<String>(json['surveyUserName']);
  if (surveyUserName != null) {
    getDetailByIdSurveyUsers.surveyUserName = surveyUserName;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getDetailByIdSurveyUsers.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getDetailByIdSurveyUsers.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getDetailByIdSurveyUsers.updateDate = updateDate;
  }
  return getDetailByIdSurveyUsers;
}

Map<String, dynamic> $GetDetailByIdSurveyUsersToJson(GetDetailByIdSurveyUsers entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['number'] = entity.number;
  data['positionErrorCount'] = entity.positionErrorCount;
  data['positionTotalCount'] = entity.positionTotalCount;
  data['recommendation'] = entity.recommendation;
  data['selectPositionList'] = entity.selectPositionList?.toJson();
  data['selectTypeList'] = entity.selectTypeList?.toJson();
  data['surveyId'] = entity.surveyId;
  data['surveyUserDepartmentId'] = entity.surveyUserDepartmentId;
  data['surveyUserDepartmentName'] = entity.surveyUserDepartmentName;
  data['surveyUserId'] = entity.surveyUserId;
  data['surveyUserName'] = entity.surveyUserName;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension GetDetailByIdSurveyUsersExtension on GetDetailByIdSurveyUsers {
  GetDetailByIdSurveyUsers copyWith({
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? id,
    int? number,
    int? positionErrorCount,
    int? positionTotalCount,
    String? recommendation,
    GetDetailByIdSurveyUsersSelectPositionList? selectPositionList,
    GetDetailByIdSurveyUsersSelectTypeList? selectTypeList,
    String? surveyId,
    String? surveyUserDepartmentId,
    String? surveyUserDepartmentName,
    String? surveyUserId,
    String? surveyUserName,
    String? updateBy,
    String? updateById,
    String? updateDate,
  }) {
    return GetDetailByIdSurveyUsers()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..number = number ?? this.number
      ..positionErrorCount = positionErrorCount ?? this.positionErrorCount
      ..positionTotalCount = positionTotalCount ?? this.positionTotalCount
      ..recommendation = recommendation ?? this.recommendation
      ..selectPositionList = selectPositionList ?? this.selectPositionList
      ..selectTypeList = selectTypeList ?? this.selectTypeList
      ..surveyId = surveyId ?? this.surveyId
      ..surveyUserDepartmentId = surveyUserDepartmentId ?? this.surveyUserDepartmentId
      ..surveyUserDepartmentName = surveyUserDepartmentName ?? this.surveyUserDepartmentName
      ..surveyUserId = surveyUserId ?? this.surveyUserId
      ..surveyUserName = surveyUserName ?? this.surveyUserName
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate;
  }
}

GetDetailByIdSurveyUsersSelectPositionList $GetDetailByIdSurveyUsersSelectPositionListFromJson(Map<String, dynamic> json) {
  final GetDetailByIdSurveyUsersSelectPositionList getDetailByIdSurveyUsersSelectPositionList = GetDetailByIdSurveyUsersSelectPositionList();
  return getDetailByIdSurveyUsersSelectPositionList;
}

Map<String, dynamic> $GetDetailByIdSurveyUsersSelectPositionListToJson(GetDetailByIdSurveyUsersSelectPositionList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  return data;
}

extension GetDetailByIdSurveyUsersSelectPositionListExtension on GetDetailByIdSurveyUsersSelectPositionList {
}

GetDetailByIdSurveyUsersSelectTypeList $GetDetailByIdSurveyUsersSelectTypeListFromJson(Map<String, dynamic> json) {
  final GetDetailByIdSurveyUsersSelectTypeList getDetailByIdSurveyUsersSelectTypeList = GetDetailByIdSurveyUsersSelectTypeList();
  return getDetailByIdSurveyUsersSelectTypeList;
}

Map<String, dynamic> $GetDetailByIdSurveyUsersSelectTypeListToJson(GetDetailByIdSurveyUsersSelectTypeList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  return data;
}

extension GetDetailByIdSurveyUsersSelectTypeListExtension on GetDetailByIdSurveyUsersSelectTypeList {
}
